﻿using Simple.Tools;
using Simple.Tools.Verify;
using SimpleSaas.Entity.Dto;
using SqlSugar;
using Swashbuckle.AspNetCore.Annotations;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace SimpleSaas.Entity
/// <summary>
/// 版 本 钢易智企2.0 V 2.0.0 钢易智企2.0
/// Copyright (c) 2023 杭州钢易科技有限公司
/// 创建人：曾东明
/// 日 期：2024
/// 描 述：
/// </summary>
{
	public class SysUserDto : IParameterVerify
	{
		/// <summary>
		/// 用户id
		/// </summary>
		[SwaggerSchema(Description = "用户id")]
		public string UserId { get; set; }
		/// <summary>
		/// 用户姓名
		/// </summary>
		[CusRequired("用户名称")]
		[SwaggerSchema(Description = "用户名称")]
		public string UserName { get; set; }

		/// <summary>
		/// 电话
		/// </summary>
		[CusPhoneNumberVerify("电话")]
		[SwaggerSchema(Description = "电话")]
		public string PhoneNumber { get; set; }

		/// <summary>
		/// 
		/// </summary>
		[SwaggerSchema(Description = "密码")]
		[CusRequired("密码")]
		public string Password { get; set; }

		/// <summary>
		///  是否是管理员
		/// </summary>

		[SugarColumn(ColumnName = "admin_flag")]
		public bool AdminFlag { get; set; }

		/// <summary>
		/// 企业id
		/// </summary>
		[SwaggerSchema(Description = "企业id")]
		[CusRequired("企业id")]
		[MapTo(typeof(long))]
		public string TenantId { get; set; }

        public List<SysMenuDto> SysMenuList { get; set; }


		public List<SysDepartmentDto> SysDeptList { get; set; }
		
	}
}